import App from './App';
import uView from '@/uni_modules/uview-ui'; // 导入uView UI 插件
Vue.use(uView); // 全局使用uView
//  1.先在全局引入
import debounce from "@/common/debounce"; // 防抖
import throttle from "@/common/throttle"; // 节流
import zhouWeiNavBar from "@/uni_modules/zhouWei-navBar/components/zhouWei-navBar/zhouWei-navBar.vue"; // 顶部导航栏

Vue.component("nav-bar", zhouWeiNavBar);
// #ifndef VUE3
import Vue from 'vue';
import store from './store';
Vue.config.productionTip = false;
Vue.prototype.$store = store;
App.mpType = 'app';
//  2.再挂载在全局
Vue.prototype.$debounce = debounce;
Vue.prototype.$throttle = throttle;
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue';
export function createApp() {
	const app = createSSRApp(App);
	return {
		app
	};
};
// #endif
